/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/idenger">idenger</a> All rights reserved.
 */
package com.idenger.modules.edu.service.userextra;

import java.util.List;

import com.idenger.common.service.CrudService;
import com.idenger.modules.edu.entity.userextra.EduUserExtra;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.idenger.common.persistence.Page;
import com.idenger.modules.edu.dao.userextra.EduUserExtraDao;

/**
 * 用户额外信息Service
 * @author 兰正军
 * @version 2017-12-07
 */
@Service
@Transactional(readOnly = true)
public class EduUserExtraService extends CrudService<EduUserExtraDao, EduUserExtra> {

	public EduUserExtra get(String id) {
		return super.get(id);
	}
	public EduUserExtra getByUserId(String userId){
		return dao.getByUserId(userId);
	}
	
	public List<EduUserExtra> findList(EduUserExtra eduUserExtra) {
		return super.findList(eduUserExtra);
	}
	
	public Page<EduUserExtra> findPage(Page<EduUserExtra> page, EduUserExtra eduUserExtra) {
		return super.findPage(page, eduUserExtra);
	}
	
	@Transactional(readOnly = false)
	public void save(EduUserExtra eduUserExtra) {
		super.save(eduUserExtra);
	}
	
	@Transactional(readOnly = false)
	public void delete(EduUserExtra eduUserExtra) {
		super.delete(eduUserExtra);
	}
	
	
}